< previous page page_234 next page >

Page 234
Making Your Own Dialog Box
You can make your own dialog box by creating a new form, putting the appropriate controls on it, and then calling the form from a menu or command button. This pop-up form can be displayed either modally or modeless. (A modal form is one that must be closed before the rest of the application can continue processing.)
Creating an About Box
Most Windows applications have a standard About box that contains copyright information about the program. These About dialog boxes usually have author information, company information, serial numbers, and sometimes system information, such as the amount of Windows memory.
Lets add an About box to the Employee Information forms menu. If you remember in Chapter 4, Lists and Menus, you added a Help menu with an About menu under it; well call a modal dialog box from this menu.
EXERCISE
Adding an About Dialog Box
1. Bring up the Employee Information form project.
2. Select Project, Add Form from the Visual Basic menu.
3. The Add Form dialog box appears (see Figure 11.12).
8160-0234a.gif
Figure 11.12
The Add Form dialog box.

 
< previous page page_234 next page >

If you like this book, buy it!